home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / mig / dist / statement.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-02-06  |  2.2 KB  |  84 lines

  1. /* 
  2.  * Mach Operating System
  3.  * Copyright (c) 1991,1990 Carnegie Mellon University
  4.  * All Rights Reserved.
  5.  * 
  6.  * Permission to use, copy, modify and distribute this software and its
  7.  * documentation is hereby granted, provided that both the copyright
  8.  * notice and this permission notice appear in all copies of the
  9.  * software, derivative works or modified versions, and any portions
  10.  * thereof, and that both notices appear in supporting documentation.
  11.  * 
  12.  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS 
  13.  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
  14.  * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
  15.  * 
  16.  * Carnegie Mellon requests users of this software to return to
  17.  * 
  18.  *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
  19.  *  School of Computer Science
  20.  *  Carnegie Mellon University
  21.  *  Pittsburgh PA 15213-3890
  22.  * 
  23.  * any improvements or extensions that they make and grant Carnegie the
  24.  * rights to redistribute these changes.
  25.  */
  26. /*
  27.  * HISTORY
  28.  * $Log:    statement.h,v $
  29.  * Revision 2.3  91/02/05  17:55:47  mrt
  30.  *     Changed to new Mach copyright
  31.  *     [91/02/01  17:55:51  mrt]
  32.  * 
  33.  * Revision 2.2  90/06/02  15:05:41  rpd
  34.  *     Created for new IPC.
  35.  *     [90/03/26  21:13:34  rpd]
  36.  * 
  37.  * 07-Apr-89  Richard Draves (rpd) at Carnegie-Mellon University
  38.  *    Extensive revamping.  Added polymorphic arguments.
  39.  *    Allow multiple variable-sized inline arguments in messages.
  40.  *
  41.  * 27-May-87  Richard Draves (rpd) at Carnegie-Mellon University
  42.  *    Created.
  43.  */
  44.  
  45. #ifndef    _STATEMENT_H
  46. #define    _STATEMENT_H
  47.  
  48. #include "routine.h"
  49.  
  50. typedef enum statement_kind
  51. {
  52.     skRoutine,
  53.     skImport,
  54.     skUImport,
  55.     skSImport,
  56.     skRCSDecl,
  57. } statement_kind_t;
  58.  
  59. typedef struct statement
  60. {
  61.     statement_kind_t stKind;
  62.     struct statement *stNext;
  63.     union
  64.     {
  65.     /* when stKind == skRoutine */
  66.     routine_t *_stRoutine;
  67.     /* when stKind == skImport, skUImport, skSImport */
  68.     string_t _stFileName;
  69.     } data;
  70. } statement_t;
  71.  
  72. #define    stRoutine    data._stRoutine
  73. #define    stFileName    data._stFileName
  74.  
  75. #define stNULL        ((statement_t *) 0)
  76.  
  77. /* stNext will be initialized to put the statement in the list */
  78. extern statement_t *stAlloc();
  79.  
  80. /* list of statements, in order they occur in the .defs file */
  81. extern statement_t *stats;
  82.  
  83. #endif    _STATEMENT_H
  84.